<?php
declare(strict_types=1);
namespace App\Controller\Api\V1\Common;

use App\Controller\Api\BaseController;
use App\Repositories\SysConfigRepository;

class ConfigController extends BaseController
{
    public function getValue(){
        $key=$this->request->input('key','agent_agreement');
        $search = [
            [
                'field' => 'name',
                'value' => strtoupper($key)
            ]
        ];
        $return = SysConfigRepository::getInstance()->one(['value'],$search);
        return $this->response->success($return);
    }
}